package com.nondo.dean.platform.model;

import com.nondo.dean.common.domain.BaseEntity;
import com.nondo.dean.common.tool.BeanUtils;

public class AreaBean {
    private Integer id;// 主键ID
    private String code;// 区域代码
    private String name;// 区域名称

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static AreaBean convertToBean(BaseEntity base) {
        AreaBean provinceBean = new AreaBean();
        BeanUtils.copy(base, provinceBean);
        return provinceBean;
    }

}
